package logic

import (
	"context"
	"go-exp/zero/rpc/permission/internal/svc"
	"go-exp/zero/rpc/permission/pb/permission"

	"github.com/zeromicro/go-zero/core/logx"
)

type ListAllRolesLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewListAllRolesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListAllRolesLogic {
	return &ListAllRolesLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *ListAllRolesLogic) ListAllRoles(in *permission.Empty) (*permission.ListRolesResponse, error) {
	// todo: add your logic here and delete this line
	return &permission.ListRolesResponse{}, nil
}
